import request from '@/utils/request'

// 查询护士列表列表
export function listNurse(query) {
  return request({
    url: '/secondVitim/nurse/list',
    method: 'get',
    params: query
  })
}

// 查询护士列表详细
export function getNurse(nurseNo) {
  return request({
    url: '/secondVitim/nurse/' + nurseNo,
    method: 'get'
  })
}

// 新增护士列表
export function addNurse(data) {
  return request({
    url: '/secondVitim/nurse',
    method: 'post',
    data: data
  })
}

// 修改护士列表
export function updateNurse(data) {
  return request({
    url: '/secondVitim/nurse',
    method: 'put',
    data: data
  })
}

// 删除护士列表
export function delNurse(nurseNo) {
  return request({
    url: '/secondVitim/nurse/' + nurseNo,
    method: 'delete'
  })
}
